From: Magnus Manske Date: Sat, 28 Jan 2006 21:44:57 +0000 (+0000) Subject: Fix for bug 4783 : {{ns:0}} does not render X-Git-Tag: 1.6.0~405 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=1a1612fdfd5f378003513b97178975d698796a59;p=lhc%2Fweb%2Fwiklou.git Fix for bug 4783 : {{ns:0}} does not render --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d1b36842c5..7df1839c7e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -257,6 +257,7 @@ Parser: * Convert unnecessary URL escape codes in external links to their equivalent character before doing anything with them. This prevents certain kinds of spam filter evasion. +* (bug 4783) : Fix for "{{ns:0}} does not render" Upload: * (bug 2527) Always set destination filename when new file is selected diff --git a/includes/Parser.php b/includes/Parser.php index 396803475d..580d63b18a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2423,7 +2423,7 @@ class Parser # Check for NS: (namespace expansion) $mwNs = MagicWord::get( MAG_NS ); if ( $mwNs->matchStartAndRemove( $part1 ) ) { - if ( intval( $part1 ) ) { + if ( intval( $part1 ) || $part1 == "0" ) { $text = $linestart . $wgContLang->getNsText( intval( $part1 ) ); $found = true; } else {